-- GENERATED SPELL FOR [Bookie Herod] --


function spell0_815(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_815', 3000, 1)
end

function spell1_815(pUnit, Event) --@Summon Syndicate Spectre,Self--
pUnit:FullCastSpellOnTarget(3722,pUnit)
pUnit:RegisterEvent('Sorts_815', 31000, 1)
end

function Sorts_815(pUnit, Event)
local choix_sorts_815 = math.random(0, 1)
if choix_sorts_815 == 0 then
pUnit:RegisterEvent('spell0_815', 1, 1)
end
if choix_sorts_815 == 1 then
pUnit:RegisterEvent('spell1_815', 1, 1)
end
end

function mob815_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_815', math.random(1500, 3000), 1)
end

function mob815_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob815_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob815_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(815, 1, 'mob815_Action')
RegisterUnitEvent(815, 2, 'mob815_Leave')
RegisterUnitEvent(815, 3, 'mob815_Kill')
RegisterUnitEvent(815, 4, 'mob815_Die')
